home *** CD-ROM | disk | FTP | other *** search
- #if !defined(_ICONCONTROL_H_)
- #define _ICONCONTROL_H_
-
- #include <MacHeaders>
-
- #define INTEXT 12
- #define INSELECTEDICON 13
- #define ICONSIZE 32
- #define ICSSIZE 16
- #define FONTSIZE 9
- #define SIZETEXTLEFT 200
- #define DATETEXTLEFT 240
- #define LISTRIGHT 500
-
- typedef struct
- {
- Rect iconrect;
- Rect textrect;
- short x;
- short y;
- }
- icondraginfo;
-
- typedef struct _iconfam
- {
- Handle icnsh;
- Handle icssh;
- Handle icl8;
- Handle icl4;
- Handle ics8;
- Handle ics4;
- }
- icontableentry, **icn_sharp_hand;
-
- enum views
- {
- ICONVIEW,
- ICSVIEW,
- LISTVIEW
- };
-
- typedef struct
- {
- char **path;
- icontableentry **iconfam;
- long ioparid;
- long filenum;
- short vrefnum;
- short selected;
- short action;
- short view;
- long moddate;
- long size;
- OSType sig;
- OSType type;
- }
- item;
-
- #define ICON_VREF(c) ((*(item **) (*(c))->contrlData)->vrefnum)
-
- #define ICON_PARENT_ID(c) ((*(item **) (*(c))->contrlData)->ioparid)
-
- #define ICON_FILENUM(c) ((*(item **) (*(c))->contrlData)->filenum)
-
- #define ICON_TITLE(c) ((*(c))->contrlTitle)
-
- extern unsigned char hiliteMode:0x938;
- extern GDHandle theGDevice:0xCC8;
-
- #endif